#include <QCoreApplication>

#include "PizzaStore.h"
#include "NYPizzaStore.h"
#include "ChicagoPizzaStore.h"

void pizzaFactoryExam1Test()
{
    PizzaStore *pizzaStore = new NYPizzaStore();
    pizzaStore->orderPizza("cheese");

    pizzaStore = new ChicagoPizzaStore();
    pizzaStore->orderPizza("cheese");

    delete pizzaStore;
    pizzaStore = nullptr;
}

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    pizzaFactoryExam1Test();
    return a.exec();
}
